#include "state_debug.h"

void CStateDebug::Init()
{
	
	 m_Tag = "StateDebug";

}

void CStateDebug::Start()
{
	


}

void CStateDebug::PreRun()
{

	m_iStateMessage = 1;
	
	m = m_pGameInterface->Graphics()->Find( "Graphics/Backgrounds/2DRPG/battleback.png" );
	
}

void CStateDebug::Input() 
{
	
	SDL_Event ev;
	
	SDL_PollEvent( &ev );
	
	
	if( ev.key.keysym.sym == SDLK_ESCAPE )
		m_iStateMessage = 0;

}

void CStateDebug::Think()
{


}

void CStateDebug::Draw()
{
	
	CLEAR_BUFFER;
	
	Draw::SetShaderProgram( 0 );
	
	m->BindFrame( 0 );
	
	Draw::Color4f( 1.0f, 1.0f, 1.0f, .6f );
	
	PUSH_MATRIX;
	
	Draw::Translate( 0, 0.0f, 0.0f );
	Draw::Scale( 1000, 600, 1.0 );
	Draw::VertexBuffer();
	
	POP_MATRIX;
	
	Draw::Translate( 50.0, 200.0f, 0.0f );
	Draw::Scale( 50.0f, 10.0f, 1.0f );
	Draw::VertexBuffer();
	
	glUseProgram( 0 );
	
	SWAP_BUFFERS;

}

